package com.xingkeduo.util;

/**
 * 
* @ClassName: RedisKeyEnum
* @Description: TODO(这里用一句话描述这个类的作用)
* @author lixin
* @date May 25, 2019 10:50:14 AM
*
 */
public enum RedisKeyEnum {
	/**
	 * 用户领取编号
	 */
	RECEIVE_ONLY_KEY("RECEIVE_ONLY_KEY"),
	/**
	 * 并发处理领取
	 */
	RECEIVE_CONCURRENT_CODE_KEY("RECEIVE_CONCURRENT_CODE_KEY"),
	/**
	 * 并发处理领取
	 */
	RECEIVE_CONCURRENT_USER_KEY("RECEIVE_CONCURRENT_USER_KEY"),
	/**
	 * 并发处理领取
	 */
	RECEIVE_COUPONBAG_SELL_KEY("RECEIVE_COUPONBAG_SELL_KEY"),
	/**
	 * C拉C新用户领取
	 */
	RECEIVE_CTOC_NEW_USER_KEY("RECEIVE_CTOC_NEW_USER_KEY"),
	/**
	 * C拉C老用户领取
	 */
	RECEIVE_CTOC_OLD_USER_KEY("RECEIVE_CTOC_OLD_USER_KEY"),
	/**
	 * 发型师发券
	 */
	RECEIVE_HAIRDRESSER_GIVE_USER_KEY("RECEIVE_HAIRDRESSER_GIVE_USER_KEY")
	;
	private String key ;
	
	RedisKeyEnum(String key){
		this.key = key;
	}
	
	public String getKeyName(){
		return key;
	}
	
	
	public String getKeyName(String name){
		return key+":"+name;
	}
	
	public String toString(String name){
		return key+":"+name;
	}
	
	@Override
	public String toString(){
		return key;
	}
}
